using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace Nirvana
{
    public class RuntimeMeshBlock : IBigWorldLoad, IBigWorldClear
    {
        public List<IBigWorldLoad> meshLoadList;

        public void Clear()
        {
            if (meshLoadList != null)
            {
                meshLoadList.Clear();
            }
        }

        public void Load()
        {
            BigWorldHelper.LoadAll(meshLoadList);
        }

        public void UnLoad()
        {
            BigWorldHelper.UnLoadAll(meshLoadList);
        }
    }
}